﻿using WindowsForms.AOnline.View.Dictionary;
//using System.Threading.Tasks;

namespace WindowsForms.AOnline.Presenter.Dictionary.Stock
{
    public class StocksPresenter : Presenter<IStocksView> 
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="CurrenciesPresenter" /> class.
        /// </summary>
        /// <param name="view">The view.</param>
        public StocksPresenter(IStocksView view) 
            : base(view)
        {
        }

        /// <summary>
        /// Displays this instance.
        /// </summary>
        public void Display(int page)
        {
            View.Stocks = Model.GetStocks(page);
        }

        public int GetPageSize()
        {
            return Model.GetPageSizeStocks();
        }


        public void GetAll()
        {
            View.Stocks = Model.GetAllStocks();
        }


    }
}
